<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Updating Test Cases</title>
</head>
<body>
<%

Vector<String> title=new Vector<String>();
Vector<String> scenario=new Vector<String>();
Vector<String> result=new Vector<String>();
String value="";

int tcCount=tc.getTCCount();

int i=0;

while( i < tcCount )
{
	value=request.getParameter("title"+i);
	if(value==null)
	{
		value=" ";
	}
	title.add(value);
	
	value=request.getParameter("scenario"+i);
	if(value==null)
	{
		value=" ";
	}
	scenario.add(value);
	
	value=request.getParameter("result"+i);
	if(value==null)
	{
		value=" ";
	}
	result.add(value);
	i++;	
}

tc.updateTestCases(title,scenario,result);

response.sendRedirect("review.jsp");
%>
</body>
</html>